package com.foldingleaf.banner.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.foldingleaf.common.annotation.Excel;
import com.foldingleaf.common.core.domain.BaseEntity;

/**
 * 广告banner图对象 banner
 * 
 * @author ajian
 * @date 2022-06-22
 */
public class Banner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long bannerId;

    /** 标题 */
    @Excel(name = "标题")
    private String bannerTitle;

    /** 链接 */
    @Excel(name = "链接")
    private String bannerUrl;

    /** 图片 */
    @Excel(name = "图片")
    private String bannerImg;

    /** 排序 */
    @Excel(name = "排序")
    private Long bannerSort;

    /** 状态（0未启用，1已启用，2已禁用） */
    @Excel(name = "状态", readConverterExp = "0=未启用，1已启用，2已禁用")
    private String bannerStatus;

    /** 类型（0首页，1其他） */
    @Excel(name = "类型", readConverterExp = "0=首页，1其他")
    private String bannerType;

    /** 链接类型（0无，1链接，2内部链接） */
    @Excel(name = "链接类型", readConverterExp = "0=无，1链接，2内部链接")
    private String bannerLinkType;

    public void setBannerId(Long bannerId) 
    {
        this.bannerId = bannerId;
    }

    public Long getBannerId() 
    {
        return bannerId;
    }
    public void setBannerTitle(String bannerTitle) 
    {
        this.bannerTitle = bannerTitle;
    }

    public String getBannerTitle() 
    {
        return bannerTitle;
    }
    public void setBannerUrl(String bannerUrl) 
    {
        this.bannerUrl = bannerUrl;
    }

    public String getBannerUrl() 
    {
        return bannerUrl;
    }
    public void setBannerImg(String bannerImg) 
    {
        this.bannerImg = bannerImg;
    }

    public String getBannerImg() 
    {
        return bannerImg;
    }
    public void setBannerSort(Long bannerSort) 
    {
        this.bannerSort = bannerSort;
    }

    public Long getBannerSort() 
    {
        return bannerSort;
    }
    public void setBannerStatus(String bannerStatus) 
    {
        this.bannerStatus = bannerStatus;
    }

    public String getBannerStatus() 
    {
        return bannerStatus;
    }
    public void setBannerType(String bannerType) 
    {
        this.bannerType = bannerType;
    }

    public String getBannerType() 
    {
        return bannerType;
    }
    public void setBannerLinkType(String bannerLinkType) 
    {
        this.bannerLinkType = bannerLinkType;
    }

    public String getBannerLinkType() 
    {
        return bannerLinkType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bannerId", getBannerId())
            .append("bannerTitle", getBannerTitle())
            .append("bannerUrl", getBannerUrl())
            .append("bannerImg", getBannerImg())
            .append("bannerSort", getBannerSort())
            .append("bannerStatus", getBannerStatus())
            .append("bannerType", getBannerType())
            .append("bannerLinkType", getBannerLinkType())
            .toString();
    }
}
